<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  1212
</body>
<script>
 Person.getInfo = function() {
   console.log('我是静态方法')
 }
 function Person(name, sex) {
    this.name = name
    this.sex = sex
    this.getName = function() {
      console.log(this.name)
    }
    return S
 }
 Person.prototype.getSex = function() {
   console.log(this.sex)
 }
 const person = new Person('张立', '31')
 console.log(person)
</script>
</html>